package com.deer.wms.base.system.service.task.impl;

import com.deer.wms.base.system.dao.task.BoxTraceMapper;
import com.deer.wms.base.system.model.task.BoxTrace;
import com.deer.wms.base.system.service.task.BoxTraceService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 申紫微
 * @version 1.0
 * @description
 * @data 2020-10-13 09:04:32
 */
@Service
@Transactional
public class BoxTraceServiceImpl extends AbstractService<BoxTrace,Integer> implements BoxTraceService {

    @Resource
    private BoxTraceMapper boxTraceMapper;

    @Override
    public List<BoxTrace> findListOfExecuting(BoxTrace boxTrace) {
        return boxTraceMapper.findListOfExecuting(boxTrace);
    }

    @Override
    public List<BoxTrace> findListHistoryBoxTrace(BoxTrace boxTrace) {
        return boxTraceMapper.findListHistoryBoxTrace(boxTrace);
    }

    @Override
    public List<BoxTrace> findListByTaskId(Integer taskId) {
        List<BoxTrace> list = boxTraceMapper.findListByTaskId(taskId);
        return list;
    }

}
